package com.weseal.dao;

import com.weseal.domain.RoleInfo;
import com.weseal.query.RoleInfoQuery;

import java.util.List;

public interface RoleInfoDao {
	List<RoleInfo> pageQuery(RoleInfoQuery query);

	int insert(RoleInfo record);

	void update(RoleInfo roleInfo);

	int delete(Long id);

	RoleInfo selectById(Long id);

	List<RoleInfo> selectByMasterId(Long masterId);

	void insertRelation(Long masterId, Long roleIds);

	void updateRelation(Long masterId, Long roleId);
}
